<?php
require_once('header.php');
?>
<table class="columns">
  <tbody><tr>
    <td class="left">
<div class="box">
<div class="body">
<?php current_sub_menu_list('li_selected_class=selected'); ?>
</div>
</div>
	</td>
    <td class="main">
<?php
if (url_get(2) == 'done') {
?>

<h1 class="page_title">留言提交成功,谢谢您的支持!</h1>

<?php
} else {
?>
    <h3><?php get_diagram_title_dynamic(); ?></h3>
<?php
diagram_content('leave_a_message');
?>
        <form action="<?php echo $html->admin_url('/manage_guestbook/add_guestbook?/guestbook/leave_a_message/done/'); ?>" method="post" id="commentform">

        <p><?php echo $html->input('Guestbook/username', array('size'=>30)); ?> 
        <label for="author">用户名 (必填)</label></p>

        <p><?php echo $html->input('Guestbook/contact', array('size'=>30)); ?> 
        <label for="email">联系方式 (必填)</label></p>

        <p><?php echo $html->input('Guestbook/title', array('size'=>30)); ?>  
        <label for="url">留言标题 (必填)</label></p>

        <p><?php echo $html->textarea('Guestbook/content', array('rows'=>10, 'cols'=>'100%')); ?></p>
        <p><input type="submit" id="submit" tabindex="5" value="提交意见建议" />
        </p>
        </form>
<?php
}
?>
	</td>
  </tr>
</tbody></table>
<?php require_once('footer.php'); ?>
